package com.qfedu.lc.api.user.controller;


import com.qfedu.lc.api.user.service.SmsLogServiceFeign;
import com.qfedu.lc.common.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


@RequestMapping("/api/sms/")
@RestController
public class SmsLogController {

    @Autowired
    private SmsLogServiceFeign smsLogServiceFeign;

    @GetMapping("/sendrcode")
    public R sendRegisterCode(@RequestParam("phone") String phone){
        // 调用service 层
        return  smsLogServiceFeign.sendRegisterCode(phone);

    }
}
